package fb

import (
	"github.com/go-resty/resty/v2"
	"time"
)

type HttpClient struct {
	cli  *resty.Client
	Host string
}

var Hc *HttpClient

func InitHttpClient(host string) {
	if Hc != nil {
		return
	}
	Hc = &HttpClient{
		cli:  resty.New(),
		Host: host,
	}
	Hc.cli.SetTimeout(10 * time.Second)
}
